package ModelLayer;
import java.util.ArrayList;
public class SalesOrder {
	
	private String orderid;
	private String date;
	private double amount;
	private ArrayList<PartOrder> orderlist;
	private String deliveryStatus;
	private String deliveryDate;
	
	
	public SalesOrder(){}
	public SalesOrder(String orderid)
	{
		this.orderid = orderid;
	}
	public String getOrderid() {
		return orderid;
	}
	public void setOrderid(String orderid) {
		this.orderid = orderid;
	}
	public String getDate() {
		return date;
	}
	public void setDate(String date) {
		this.date = date;
	}
	public double getAmount() {
		return amount;
	}
	public void setAmount(double amount) {
		this.amount = amount;
	}
	public String getDeliveryStatus() {
		return deliveryStatus;
	}
	public void setDeliveryStatus(String deliveryStatus) {
		this.deliveryStatus = deliveryStatus;
	}
	public String getDeliveryDate() {
		return deliveryDate;
	}
	public void setDeliveryDate(String deliveryDate) {
		this.deliveryDate = deliveryDate;
	}
	
	
	public void addPartOrder(PartOrder partOrder)
	{
		orderlist.add(partOrder);
	}
	
	@Override
	public String toString()
	{
		return "id: " + orderid +" dato: " + date +" afleveringsdato: " + deliveryDate + " afleveringsstatus: " + deliveryStatus;	}
	

}
